/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;
import po.Activity;
import po.User;
import java.util.List;
import po.Comment;
import po.Useractrelation;
/**
 *
 * @author sony
 */
public interface ActivityDao {
    void save(Activity activity) throws Exception;
    void deleteActivity(int activityId) throws Exception;
    Activity getActivity(int activityId);
    List<Activity> getUserActivities(int userId);
    List<Activity> getOrgActivities(int orgId);
    List getActors(int activityId);
    List getMembers(int orgId);
    boolean isActor(int activityId, int userId);
    void editActivityBehavior(int activityId, int userId, String behavior);
    void editActivityScore(int activityId, int userId, int score);
    List<Useractrelation> getUseractrelation(int activityId);
    void joinActivity(Useractrelation useractrelation);
    void addUseractrelations(List<Useractrelation> useractrelations);
    void askForLeave(int activityId, int userId);
    List<Comment> getComments(int activityId);
    void addComment(int activityId, int userId, String content);
    void deleteComment(int commentId);
}
